#!/usr/bin/env bash
FTILE_NAME=$1
ftp -n <<- EOF
open 10.12.131.29
user FtpUser 123456
cd /
bin
put $FTILE_NAME
mget test.txt
bye
EOF